<template>
  <div>
    <p>
      <button @click="add">异步+1</button>
    </p>
    <p>
      <button @click="reduce">异步-1</button>
    </p>
  </div>
</template>

<script>
export default {
  methods: {
    add() {
      this.$store.dispatch("adds");
    },
    reduce() {
      this.$store.dispatch("reduces");
    },
  },
};
</script>

<style>
</style>